import { CommonEntity } from '../../../../common/entities/common.entity';
import { Column, Entity } from 'typeorm';

@Entity({
  name: 'sys_permission',
  comment: '系统接口权限表',
})
export class Permission extends CommonEntity {
  @Column({
    length: 50,
    collation: 'utf8mb4_bin',
    type: 'varchar',
    comment: '权限标识',
  })
  value: string;

  @Column({
    length: 100,
    type: 'varchar',
    default: null,
    comment: '权限名',
  })
  name: string;
}
